package o;

import android.view.View;
import com.huawei.support.widget.HwBottomNavigationView;
import java.lang.ref.WeakReference;

public class fme extends SkinAttr {

    static final class b extends fkz<SkinAttr, Integer> {
        private WeakReference<HwBottomNavigationView> ˎ;

        private b(HwBottomNavigationView hwBottomNavigationView) {
            this.ˎ = new WeakReference(hwBottomNavigationView);
        }

        public void ॱ(Integer num) {
            HwBottomNavigationView hwBottomNavigationView = (HwBottomNavigationView) this.ˎ.get();
            if (hwBottomNavigationView != null) {
                hwBottomNavigationView.setMessageBgColor(num.intValue());
            }
        }
    }

    public fme() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwBottomNavigationView) {
            HwBottomNavigationView hwBottomNavigationView = (HwBottomNavigationView) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new b(hwBottomNavigationView)).ॱ(z);
            }
        }
    }
}
